'use strict';
const db=uniCloud.database()
exports.main = async (event, context) => {
	
	let {i,MAX_LIMIT,novel} = event;
	let res = await db.collection("novelshijianlist")
	.where({
		  novel: novel
	})
	.orderBy("year", "asc") // 按照 time 属性的数字大小进行升序排序，如果需要降序排序可以使用 "desc"
	.skip(i * MAX_LIMIT)
	.limit(MAX_LIMIT)
	.get();
	
	
	return res;
};
